package com.elder.business.service;

import java.util.List;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.elder.business.domain.ElderlyApartmentVisitRecords;
import com.elder.common.core.page.TableDataInfo;

/**
 * 探访记录Service接口
 * 
 * @author zyk
 * @date 2023-11-26
 */
public interface IElderlyApartmentVisitRecordsService 
{
    /**
     * 查询探访记录
     * 
     * @param id 探访记录主键
     * @return 探访记录
     */
    public JSONObject selectElderlyApartmentVisitRecordsById(Long id);

    /**
     * 查询探访记录列表
     *
     * @return 探访记录集合
     */
    public TableDataInfo selectElderlyApartmentVisitRecordsList(String visitorName, String elderName, String startTime, String endTime, Integer pageNum, Integer pageSize);

    /**
     * 新增探访记录
     * 
     * @param elderlyApartmentVisitRecords 探访记录
     * @return 结果
     */
    public int insertElderlyApartmentVisitRecords(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);

    /**
     * 修改探访记录
     * 
     * @param elderlyApartmentVisitRecords 探访记录
     * @return 结果
     */
    public int updateElderlyApartmentVisitRecords(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);

    /**
     * 批量删除探访记录
     * 
     * @param ids 需要删除的探访记录主键集合
     * @return 结果
     */
    public int deleteElderlyApartmentVisitRecordsByIds(Long[] ids);

    /**
     * 删除探访记录信息
     * 
     * @param id 探访记录主键
     * @return 结果
     */
    public int deleteElderlyApartmentVisitRecordsById(Long id);

    public List<ElderlyApartmentVisitRecords> selectElderlyApartmentVisitRecordsExportList(ElderlyApartmentVisitRecords elderlyApartmentVisitRecords);
}
